package com.byt.common.view.finder.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class DateAgeBean implements Parcelable {

    private String name;
    private String value;
    private int age;

    public DateAgeBean(String name, String value,int age) {
        this.name = name;
        this.value = value;
        this.age = age;
    }

    protected DateAgeBean(Parcel in) {
        name = in.readString();
        value = in.readString();
        age = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(value);
        dest.writeInt(age);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<DateAgeBean> CREATOR = new Creator<DateAgeBean>() {
        @Override
        public DateAgeBean createFromParcel(Parcel in) {
            return new DateAgeBean(in);
        }

        @Override
        public DateAgeBean[] newArray(int size) {
            return new DateAgeBean[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
